package com.abner.springcloudprovideruser.Service;

import com.abner.springcloudprovideruser.dao.UserMapper;
import com.abner.springcloudprovideruser.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public User getUser(String id){
        return userMapper.selectByPrimaryKey(id);
    }
}
